package com.distribute.framework.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.distribute.framework.core.sql.mongodb.MongodbDataSource;

@Configuration
public class MongoDataSourceConfig {
	
	@Value("${spring.datasource.distribute_data.address}")
    private String distributeDataAddress;
	
	@Bean(name="distributeDataDataSource")
	public MongodbDataSource getDistributeDataDataSource(){
		return new MongodbDataSource(distributeDataAddress);
	}
    
}